package gui.commons;

/*
 *	2013.01.01 - Alejandro Alcaide
 *	The IdText is an object to manage an int id, String str pair.
 * */
public class IdText {
	
	private int id;
	private String str;
	
	public IdText(int id, String str) {
		this.id = id;
		this.str = str;
	}
	
	/*
	 *	toString method permits the object to be printed directly
	 * */
	public String toString() {
		return str;
	}
	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}
	/**
	 * @return the str
	 */
	public String getStr() {
		return str;
	}
	/**
	 * @param str the str to set
	 */
	public void setStr(String str) {
		this.str = str;
	}
}
